home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / source / snip9503 / keylocks.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-14  |  321 b   |  23 lines

  1. static volatile unsigned char _far *keyflags =
  2.       (unsigned char _far *)0x00400017;
  3.  
  4. void setcaps(void)
  5. {
  6.         *keyflags |= 0x40;
  7. }
  8.  
  9. void clrcaps(void)
  10. {
  11.         *keyflags &= ~0x40;
  12. }
  13.  
  14. void setnumlock(void)
  15. {
  16.         *keyflags |= 0x20;
  17. }
  18.  
  19. void clrnumlock(void)
  20. {
  21.         *keyflags &= ~0x20;
  22. }
  23.